package com.example.mediaplayerdemo.view;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.RectF;
import android.util.Log;
import android.widget.TextView;

import com.example.mediaplayerdemo.R;
import com.github.mikephil.charting.charts.Chart;
import com.github.mikephil.charting.components.MarkerView;
import com.github.mikephil.charting.data.Entry;
import com.github.mikephil.charting.highlight.Highlight;
import com.github.mikephil.charting.utils.MPPointF;

/**
 * @ClassName: MyMarkerView$
 * @Description: 作用
 * @Author: letquit
 * @CreateDate: 12/10/2021$
 * @Version: 1.0
 */
public class MyMarkerView extends MarkerView {
    private TextView tvContent;
    public MyMarkerView(Context context) {
        super(context, R.layout.markview_text1);
        tvContent = findViewById(R.id.tvContent);
    }

    @Override
    public void refreshContent(Entry e, Highlight highlight) {
        super.refreshContent(e, highlight);
        tvContent.setText("" + highlight.getY());
    }

}
